import axiosInstance from "../axios";
/**
 * @descriptions 邮箱验证码
 * @data {addAddress}
 * @returns <AxiosPromise>
 */
export function EmailCode(data) {
    return axiosInstance({
        method: 'post',
        url: '/Email/Email.php?s=emailRegister',
        headers: {
            'smskey': '855228c94ac52c829b26b7a7317b8d91e04cb1de'
        },
        data
    })
}
/**
 * @descriptions 注册新用户（邮箱）
 * @data {account,code,emailCode,password}
 * @returns <AxiosPromise>
 */
export function userRegister(data) {
    return axiosInstance({
        method: 'post',
        url: '/User/User.php?s=emailRegister',
        data
    })
}
/**
 * @descriptions 用户登录
 * @data {account,password}
 * @returns <AxiosPromise>
 */
export function userLogin(data) {
    return axiosInstance({
        method: 'post',
        url: '/User/User.php?s=login',
        data
    })
}